package cn.rxls.community.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 商品(Goods)表实体类
 *
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods")
public class Goods {
    @TableId(type = IdType.ASSIGN_ID)
    //主键id    
    private Long goodsId;

    //标题
    private String goodsTitle;
    //价格
    private Long goodsPrice;
    //折扣价
    private Long goodsDiscount;
    //预览图
    private String goodsCover;
    //描述
    private String goodsDescription;
    //简介、富文本
    private String goodsSynopsis;
    //所属分类id
    private Long goodsCategory;

    //上架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;
    //状态 1启用  0禁用
    private Integer goodsState;
    //库存
    private Integer goodsInventory;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date updateTime;
    //图文简介、图片链接
    private String goodsTeletext;
}
